#include"bar.h"
#include<string.h>
const char*lable="|/-\\";
char bar[NUM];
void ProcessBar(int rate)
{
  int len=strlen(lable);
    printf("[%-100s][%d%%][%c]\r",bar,rate,lable[rate%len]);
    bar[rate++]=TYPE;
    if(rate<100)
    bar[rate]=RIGHT;
    fflush(stdout);
 //sleep(1);

}

void InItChar()
{
  memset(bar,'\0',sizeof(bar));
}
